#include<iostream>
using namespace std;
#include<string>

int main()
{

  string str = "abcd\0efg";
  cout << str << str.size() << endl;
  string tmp;
  tmp.assign("abcd\0efg",8);
  cout<< tmp << tmp.size() << endl;
  

  return 0;
}
